<script type="text/javascript" charset="utf-8">
    Cookies.set('order_type', "<%= @order_type || "free" %>")

    if (Cookies.get('code')) {
        var code = Cookies.get('code')
        Cookies.remove('code')
        window.location.href = "/fullscreen_play?play_type=once&code=" + code
    } else {
        window.location.href = "<%= ENV.fetch("DEFAULT_PATH") { "/recommend" } %>";
    }
</script>
